<?php

class Oauth2_TestCase extends PHPUnit_Framework_TestCase
{
    protected $_db;
    protected $_oauth2;
    
    protected function _recreateDb(PDO $db) {
        $sqlFile = __DIR__.'/../examples/server/pdo/sqlite_create_tables.sql';
        $sql = file_get_contents ($sqlFile);
        $result = $db->exec($sql);
    }
    
    public function setUp()
    {
        $this->_oauth2 = new PDOOAuth2();
        $this->_db = $this->_oauth2->getDb();
        $this->_recreateDb($this->_db);
    }
}
